<?php

class Factory
{
    static public function GetObject($classname)
    {
        return class_exists($classname, true) ? new $classname : null;
    }
};

?>
